package com.xialinrui.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xialinrui.dto.TodoDto;
import com.xialinrui.entity.Affair;

import java.util.List;

public interface AffairService extends IService<Affair> {
    void addOneAffair(Affair affair);

    void addTodoToAffair(Long affairId, Long todoId);

    void deleteAffair(Long affairId, Long todoId);

    List<TodoDto> selectAllTodosByAffairId(Long affairId);

    void deleteAffairById(Long affairId);
}
